import { defineConfig } from 'vite';

export default defineConfig({
    server: {
        proxy: {
            '/ruoyi': {
                target: 'http://10.2.3.24:8080/',
                changeOrigin: true,
                rewrite: path => path.replace(/^\/ruoyi/, '')
            },
            '/iot': {
                target: 'http://10.2.3.24:8080/',
                changeOrigin: true
            }
        }
    }
});
